﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="Profiles.aspx.cs" Inherits="XinBang.Web.Admin.Profiles" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headerplace" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainplace" Runat="Server">
<h2><asp:Literal ID="ttitle" runat="server">个人档案</asp:Literal></h2>
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="1">
        <asp:View ID="View1" runat="server">
                <table class="show">
	                <tr>
		                <td class="r_ight"><label for="username">
                            用户名:</label></td>
		                <td class="l_eft">
                            &nbsp;<asp:Literal ID="username" runat="server"></asp:Literal>
                        </td>
	                </tr>
	                <tr>
		                <td class="r_ight"><label for="email">
                            Email地址:</label></td>
		                <td class="l_eft">
                            &nbsp;<asp:Literal ID="email" runat="server"></asp:Literal></td>
	                </tr>
                </table>
                <asp:Button ID="modify" runat="server" Text="修改密码" CssClass="b_utton" OnClick="modify_Click" /> 
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table class="show">
	            <tr>
		            <td class="r_ight"><label for="oldpassword">原始密码</label></td>
		            <td class="l_eft"><asp:TextBox ID="oldpassword" runat="server" TextMode="Password" CssClass="t_ext"></asp:TextBox>
                        <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="oldpassword"
                            ErrorMessage="原始密码不对！" Display="Dynamic"></asp:CustomValidator><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="oldpassword"
                            ErrorMessage="请输入原始密码"></asp:RequiredFieldValidator></td>
	            </tr>
	            <tr>
		            <td class="r_ight"><label for="newpassword">新密码</label></td>
		            <td class="l_eft"><asp:TextBox id="newpassword" runat="server" TextMode="Password" CssClass="t_ext" ToolTip="请输入新密码"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="newpassword"
                            ErrorMessage="请输入一个新密码"></asp:RequiredFieldValidator></td>
	            </tr>
	            <tr>
		            <td class="r_ight"><label for="confirmpassword">重复密码</label></td>
		            <td class="l_eft"><asp:TextBox ID="confirmpassword" runat="server" TextMode="Password" CssClass="t_ext" CausesValidation="True" ToolTip="重复新密码"></asp:TextBox><asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次密码输入不相同" ControlToCompare="newpassword" ControlToValidate="confirmpassword"></asp:CompareValidator></td>
	            </tr>
                <tr>
                    <td class="r_ight">
                    </td>
                    <td class="l_eft">
                        <asp:Label ID="message" runat="server" Visible="False"></asp:Label></td>
                </tr>
            </table>
            <asp:Button ID="view" runat="server" Text="查看个人资料" CssClass="b_utton" CausesValidation="False" OnClick="view_Click" />
            <asp:Button ID="submit" runat="server" Text="提交" CssClass="b_utton" OnClick="submit_Click" />
        </asp:View>
    </asp:MultiView>
</asp:Content>

